#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define R register
#define L long
#define LL long long
#define I inline
#define U unsigned

I LL read()
{
	R LL x;R char f;R char c;
	for (f=0; (c=getchar())<'0'||c>'9'; f=c=='-');
	for (x=c-'0'; (c=getchar())>='0'&&c<='9'; x=(x<<3)+(x<<1)+c-'0');
	return f?-x:x;
}
int yingbi[2],n,cnt;
int get_rest()
{
    return n-yingbi[0]*5-yingbi[1]*2;
}
void dfs(int type)
{
    if(type==2)
    {
        printf("fen5:%d, fen2:%d, fen1:%d, total:%d\n",yingbi[0],yingbi[1],get_rest(),yingbi[0]+yingbi[1]+get_rest());
        ++cnt;
    }
    else
    {
        for(int i=100;i>0;--i)
        {
            yingbi[type]=i;
            if(get_rest()<=0)
                continue;
            dfs(type+1);
        }
        yingbi[type]=0;
    }
}



int main()
{
    n=read();
    dfs(0);
    printf("count = %d",cnt);
 	return 0;
}
